﻿using System;
using System.Text;
using ProjScan.Tools;
using UnityEngine;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x020002A9 RID: 681
	internal class SkinnedMeshRendererAssetData : ComponentAssetData<SkinnedMeshRenderer>
	{
		// Token: 0x060011BE RID: 4542 RVA: 0x00053664 File Offset: 0x00051864
		public SkinnedMeshRendererAssetData(int directoryId, SkinnedMeshRenderer renderer, string name) : base(directoryId, name, renderer)
		{
			this.hasMotionVectors = false;
			object propertyValue = AssemblyTools.I.GetPropertyValue(renderer, "skinnedMotionVectors");
			bool flag = propertyValue != null;
			if (flag)
			{
				this.hasMotionVectors = (bool)propertyValue;
			}
			Transform[] bones = renderer.bones;
			this.boneCount = ((bones == null) ? 0 : bones.Length);
		}

		// Token: 0x060011BF RID: 4543 RVA: 0x000536C0 File Offset: 0x000518C0
		public override string GetCSVHeader()
		{
			return "Name,DirID,BoneNum";
		}

		// Token: 0x060011C0 RID: 4544 RVA: 0x000536D8 File Offset: 0x000518D8
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder();
			stringBuilder.Append(ToolsHelper.QuoteString(this.name));
			stringBuilder.Append(',');
			stringBuilder.Append(this.directoryId);
			stringBuilder.Append(',');
			stringBuilder.Append(this.boneCount);
			return stringBuilder.ToString();
		}

		// Token: 0x04000A75 RID: 2677
		public bool hasMotionVectors;

		// Token: 0x04000A76 RID: 2678
		public int boneCount;
	}
}
